<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>溢出属性</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            background: yellow;
            /* overflow: visible;显示溢出 默认*/
            /* overflow: hidden;溢出隐藏，文本裁切 */
            /* overflow: scroll; */
            /* overflow: auto; */
            /* overflow: inherit;继承父元素的效果 */
        }
        .box{
            /* overflow: auto; */
            overflow-x: auto;
            /* overflow-x溢出 */
            overflow-y: hidden;
             /* overflow-y溢出 */
        }
    </style>
</head>
<body>
    <div>
        Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quae rem esse alias, temporibus dolorem porro deleniti corrupti consequuntur dolores in mollitia quidem qui consequatur molestiae necessitatibus, saepe quasi adipisci accusamus.
    </div>
    <div class="box">
        <img src="img1/2.png" alt="">
    </div>
</body>
</html>